/* @(#)GSBalanceManageQueryResultVO.java   
 *
 * Project: GS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li    2006-4-21     新增
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

/**
 * 
 */
public class GSBalanceManageQueryResultVO implements GSBaseBean {

    public String deptId;
    public String balanceMonth;
    public String deptCategory;
    public double balanceSum;
    public String payType;
    public String balanceSign;
    public String deptName;
    public String upperDeptId;
    public String actualBalanceDept;
    public String balanceMsg;
    
    public Object process(ResultSet aResultSet) throws SQLException {
        GSBalanceManageQueryResultVO tVO = new GSBalanceManageQueryResultVO();
        tVO.deptId = aResultSet.getString("P1");
        tVO.balanceMonth = aResultSet.getString("P2");
        tVO.deptCategory = aResultSet.getString("P3");
        tVO.balanceSum = aResultSet.getDouble("P4");
        tVO.payType = aResultSet.getString("P5");
        tVO.balanceSign = aResultSet.getString("P6");
        tVO.deptName = aResultSet.getString("P7");
        tVO.upperDeptId = aResultSet.getString("P8") == null ? "" : aResultSet.getString("P8");
        tVO.actualBalanceDept = aResultSet.getString("P9") == null? "":aResultSet.getString("P9");
        tVO.balanceMsg = aResultSet.getString("P10") == null? "":aResultSet.getString("P10");
        return tVO;
    }

}
